package com.wish.finance.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wish.common.core.usconfig.common.MsgResult;
import com.wish.finance.entity.TCwCheckBatchDetail;
import com.wish.finance.entity.TCwCheckBatchDetailVO;
import com.wish.finance.service.ITCwCheckBatchDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 对账批次明细表（保存对账结果明细的表） 前端控制器
 * </p>
 *
 * @author 
 * @since 2022-03-28
 */
@RestController
@RequestMapping("/checkbatchdetail")
public class TCwCheckBatchDetailController {

	@Autowired
	ITCwCheckBatchDetailService cwCheckBatchDetailService;

	@PostMapping("list")
	public MsgResult list(@RequestBody TCwCheckBatchDetailVO vo){
		IPage<TCwCheckBatchDetail> page = cwCheckBatchDetailService.listAll(vo);
		return MsgResult.succeed(page);
	}


}
